'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  // 登录
  router.post('/login', controller.login.login);
  // 注册
  router.post('/register', controller.login.register);
  //购物车，分页，模糊搜索
  router.get('/getlists',controller.home.getList)
};
